package com.ciaojian.worker.strategy.workerstatus;

import com.ciaojian.core.enums.business.WorkerWorkerStatusEnum;
import com.ciaojian.core.model.Worker;
import com.ciaojian.worker.factory.StatusModifierFactory;
import org.springframework.stereotype.Component;

/**
 * @author oxiny
 */
@Component
public class NearlyDowntimeModifier implements StatusModifier{
    @Override
    public void handle(Worker worker) {

    }

    @Override
    public WorkerWorkerStatusEnum getStatus() {
        return WorkerWorkerStatusEnum.NEARLY_DOWNTIME;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        StatusModifierFactory.register(this);
    }
}
